package com.peach.utils;

public class DeviceUtil {

    public static String transferProductName (String productName) {

        switch (productName) {

            case "iPhone3,1":
                return "iPhone4";
            case "iPhone3,2":
                return "iPhone4";
            case "iPhone4,1":
                return "iPhone4S";
            case "iPhone5,1":
                return "iPhone5";
            case "iPhone5,2":
                return "iPhone5";
            case "iPhone5,3":
                return "iPhone5C";
            case "iPhone5,4":
                return "iPhone5C";
            case "iPhone6,1":
                return "iPhone5S";
            case "iPhone7,1":
                return "iPhone6sPlus";
            case "iPhone7,2":
                return "iPhone6";
            case "iPhone8,1":
                return "iPhone6s";
            case "iPhone8,2":
                return "iPhone6sPlus";
            case "iPhone8,4":
                return "iPhoneSE";
            case "iPhone9,1":
                return "iPhone7";
            case "iPhone9,3":
                return "iPhone7";
            case "iPhone9,2":
                return "iPhone7Plus";
            case "iPhone9,4":
                return "iPhone7Plus";
            case "iPhone10,1":
                return "iPhone8";
            case "iPhone10,4":
                return "iPhone8";
            case "iPhone10,2":
                return "iPhone8Plus";
            case "iPhone10,5":
                return "iPhone8Plus";
            case "iPhone10,3":
                return "iPhoneX";
            case "iPhone10,6":
                return "iPhoneX";
            default:
                return "unknown";
        }
    }
}
